package ar.edu.unq.tpi.labso.rochi.agendaRochi.Wicket;

import org.apache.wicket.markup.html.WebPage;
import org.apache.wicket.markup.html.link.Link;

import ar.edu.unq.tpi.labso.rochi.agendaRochi.Wicket.contacto.AgregarContactoPage;
import ar.edu.unq.tpi.labso.rochi.agendaRochi.Wicket.contacto.BuscarContactoPage;
import ar.edu.unq.tpi.labso.rochi.agendaRochi.Wicket.contacto.EditarContactoPage;
import ar.edu.unq.tpi.labso.rochi.agendaRochi.Wicket.contacto.GuardaGrillaContactoPanel;
import ar.edu.unq.tpi.labso.rochi.agendaRochi.Wicket.evento.AgregarEventoPage;
import ar.edu.unq.tpi.labso.rochi.agendaRochi.Wicket.evento.BuscarEventoPage;
import ar.edu.unq.tpi.labso.rochi.agendaRochi.Wicket.evento.EditarEventoPage;

/**
 * Homepage
 */
public class HomePage extends WebPage {
	private static final long serialVersionUID = 1L;

    public HomePage() {
    //Contactos
    	add(new BuscarContactoPage("BusquedaDeContacto"));
//    	add(new Link("editarContacto"){
//    		private static final long serialVersionUID = -2077628356808318039L;
//			public void onClick() {
//		HomePage.this.setResponsePage(new EditarContactoPage());
//			}});
    	add(new Link("agregarContacto"){
    		private static final long serialVersionUID = -2077628356808318039L;
			public void onClick() {
				HomePage.this.setResponsePage(new AgregarContactoPage());
			}});
    	
    
    //Eventos
    	add(new BuscarEventoPage("BusquedaDeEvento"));
	
	    	
    	add(new Link("agregarEvento"){
			public void onClick() {
				HomePage.this.setResponsePage(new AgregarEventoPage());
			}});
    	
		
  	
    	add(new Link("Limpiar"){
    		public void onClick() {
    			HomePage.this.setResponsePage(new HomePage());
		}});
	}
    }         


